<h1>User List</h1>

<button><%= link_to 'New User', new_user_path %></button>

<table>
	<thead>
		<tr>
			<th colspan="3">Options</th>
			<th>ID</th>
			<th>Name</th>
			<th>RoleID</th>
			<th>Enable</th>
			<th>Created Date</th>
			<th>Created User</th>
			<th>Updated Date</th>
			<th>Updated User</th>
		</tr>
	</thead>

	<tbody>
		<% @users.each do |user| %>
		<tr>
			<td><%= link_to 'Show', user %></td>
			<td><%= link_to 'Edit', edit_user_path(user) %></td>
			<td><%= link_to 'delete', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
			<td><%= user.id%></td>
			<td><%= user.name%></td>
			<td><%= user.roleID%></td>
			<td><%= user.enable%></td>
			<td><%= user.created_at%></td>
			<td><%= user.createdUser%></td>
			<td><%= user.updated_at%></td>
			<td><%= user.updatedUser%></td>
		</tr>
		<% end %>
	</tbody>
</table>